package cn.hzc.fortess.system.service;

import cn.hzc.fortess.core.shiro.ShiroUser;
import cn.hzc.fortess.system.entity.Project;
import cn.hzc.fortess.system.page.Pagination;
import cn.hzc.fortess.system.search.ProjectSearch;

import java.util.List;

public interface ProjectService {

    void add(Project entity);

    void update(Project entity);

    void delete(Integer id);

    Project getById(Integer id);

    List<Project> getUserProject();

    List<Project> getProjectByUserRole(ShiroUser shiroUser);

    List<Integer> getUserProjectIds();

    List<Project> getAllByLesseeId(Integer lesseeId);

    Pagination getPage(ProjectSearch search);

}
